package gat.common.enums;

public enum PrivilegeUnitEnum {

    DAY("DAY", "天"),
    MONTH("MONTH", "月")
    ;

    private String code;
    private String desc;

    public static PrivilegeUnitEnum getByCode(String code) {
        PrivilegeUnitEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            PrivilegeUnitEnum memberTypeEnum = var1[var3];
            if (memberTypeEnum.getCode().equals(code)) {
                return memberTypeEnum;
            }
        }

        return null;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    private PrivilegeUnitEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private PrivilegeUnitEnum() {
    }
}